﻿using Microsoft.AspNetCore.Mvc;
using newlife.core.api.Models;

namespace newlife.core.api.Controllers
{
    /// <summary>
    /// 雪花 ID 操作
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class SnowflakeIdController : ControllerBase
    {
        [HttpGet]
        public IActionResult Get()
        {
            return Ok(CoreSnowflakeSingleton.GetId());
        }
    }
}
